[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
##############################################################################
###+---------+################################################################
#+-| M_PUTLN |-------------------------------------+##########################
#| +---------+ Inserts text_string into memo_field |##########################
#+-------------------------------------------------+##########################
##############################################################################
##############################################################################
#+--| Summary |--------------+################################################
#| #INCLUDE memo.hdr |################################################
#+---------------------------+################################################
##############################################################################
##############################################################################
#+--| Syntax |--------------------------------------------------+#############
#| PROCEDURE m_putln PROTOTYPE |#############
#| PARAMETERS MEMO memo_field, VALUE CHAR text_string |#############
#+--------------------------------------------------------------+#############
##############################################################################
##############################################################################
########+---| Description |------------------------------------------+########
########| The m_putln procedure inserts text_string into memo_field. |########
########| Carriage return and line-feed characters are prepended to |########
########| the text_string. |########
########| ---------------------------------------------------------- |########
########| memo_field must have been opened in either the &MO_WRITE |########
########| or &MO_APPEND mode. |########
########+------------------------------------------------------------+########
##############################################################################
##############################################################################
#########+--| Example 1 |-------------------------------------------+#########
#########| * Attach a warranty description to each |#########
#########| * new customer account. |#########
#########| |#########
#########| PROCEDURE attach_warranty |#########
#########| PARAMETERS MEMO new_customer, CONST CHAR warranty |#########
#########| |#########
#########| m_open( new_customer, &MO_CREATE ) |#########
#########| m_putln( new_customer, warranty ) |#########
#########| m_close( new_customer ) |#########
#########| |#########
#########| ENDPRO |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 2 |-------------------------------------------+#########
#########| * Insert a comment into a memo. |#########
#########| |#########
#########| ACCEPT "Comment: " TO comment |#########
#########| m_open( physics->d101m, &MO_APPEND ) |#########
#########| m_putln( physics->d101m, comment ) |#########
#########| m_close( physics->d101m ) |#########
#########+----------------------------------------------------------+#########
##############################################################################
See Also:
m_close
m_edit
m_eof()
m_exist()
m_getln
...
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson